package com.etc.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {

	// 1个订单 对应多个订单的items
	private List<Items> items;

	public List<Items> getItems() {
		return items;
	}

	public void setItems(List<Items> items) {
		this.items = items;
	}

	//2  订单中加入一个购物车的中记录id(shopcid)
	private List<Integer> shopcids;

	public List<Integer> getShopcids() {
		return shopcids;
	}

	public void setShopcids(List<Integer> shopcids) {
		this.shopcids = shopcids;
	}

	/**
	 *
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column tbl_order.orderid
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private String orderid;

	/**
	 *
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column tbl_order.ordersum
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private Integer ordersum;

	/**
	 *
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column tbl_order.orderdate
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private Date orderdate;

	/**
	 *
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column tbl_order.orderstate
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private Integer orderstate;

	/**
	 *
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column tbl_order.userid
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private Integer userid;

	/**
	 *
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column tbl_order.total
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private Double total;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database table tbl_order
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column tbl_order.orderid
	 *
	 * @return the value of tbl_order.orderid
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public String getOrderid() {
		return orderid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column tbl_order.orderid
	 *
	 * @param orderid the value for tbl_order.orderid
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column tbl_order.ordersum
	 *
	 * @return the value of tbl_order.ordersum
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public Integer getOrdersum() {
		return ordersum;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column tbl_order.ordersum
	 *
	 * @param ordersum the value for tbl_order.ordersum
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public void setOrdersum(Integer ordersum) {
		this.ordersum = ordersum;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column tbl_order.orderdate
	 *
	 * @return the value of tbl_order.orderdate
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public Date getOrderdate() {
		return orderdate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column tbl_order.orderdate
	 *
	 * @param orderdate the value for tbl_order.orderdate
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column tbl_order.orderstate
	 *
	 * @return the value of tbl_order.orderstate
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public Integer getOrderstate() {
		return orderstate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column tbl_order.orderstate
	 *
	 * @param orderstate the value for tbl_order.orderstate
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public void setOrderstate(Integer orderstate) {
		this.orderstate = orderstate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column tbl_order.userid
	 *
	 * @return the value of tbl_order.userid
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public Integer getUserid() {
		return userid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column tbl_order.userid
	 *
	 * @param userid the value for tbl_order.userid
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column tbl_order.total
	 *
	 * @return the value of tbl_order.total
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public Double getTotal() {
		return total;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column tbl_order.total
	 *
	 * @param total the value for tbl_order.total
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	public void setTotal(Double total) {
		this.total = total;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to
	 * the database table tbl_order
	 *
	 * @mbg.generated Tue Mar 09 15:31:03 CST 2021
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", orderid=").append(orderid);
		sb.append(", ordersum=").append(ordersum);
		sb.append(", orderdate=").append(orderdate);
		sb.append(", orderstate=").append(orderstate);
		sb.append(", userid=").append(userid);
		sb.append(", total=").append(total);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}